﻿
@{
    Layout = null;
}
@using Webdiyer.WebControls.Mvc;
@model PagedList<hospital_management_system.ServiceReference1.T_Office>
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Off_AddPage</title>

    <link href="~/Content/BootstrapSouce/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/Content/BootstrapSouce/js/jquery.min.js"></script>
    <script src="~/Content/BootstrapSouce/js/bootstrap.min.js"></script>
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
</head>
<body>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="carousel slide" id="carousel-31952">
                    <ol class="carousel-indicators">
                        <li data-slide-to="0" data-target="#carousel-31952">
                        </li>
                        <li data-slide-to="1" data-target="#carousel-31952">
                        </li>
                        <li data-slide-to="2" data-target="#carousel-31952" class="active">
                        </li>
                    </ol>
                    <div class="carousel-inner">
                        <div class="item">
                            <img alt="" src="~/Pictures/pp1.jpg" style="height:300px;margin-left:330px; width:1500px;"  />
                            <div class="carousel-caption">
                                <h4 style="color:#ffd800;">
                                    专业
                                </h4>
                                <p>
                                    专业是一种态度!
                                </p>
                            </div>
                        </div>
                        <div class="item">
                            <img alt="" src="~/Pictures/ppp2.jpg" style="height:300px;margin-left:330px; width:1500px;"  />
                            <div class="carousel-caption">
                                <h4 style="color:#ffd800;">
                                    责任
                                </h4>
                                <p>
                                    责任是成长的标志！
                                </p>
                            </div>
                        </div>
                        <div class="item active">
                            <img alt="" src="~/Pictures/ppp3.jpg" style="height:300px;margin-left:330px; width:1500px;" />
                            <div class="carousel-caption">
                                <h4 style="color:#ffd800;">
                                    博爱
                                </h4>
                                <p>
                                    博爱是最基本的品质！
                                </p>
                            </div>
                        </div>
                    </div> <a data-slide="prev" href="#carousel-31952" class="left carousel-control">‹</a> <a data-slide="next" href="#carousel-31952" class="right carousel-control">›</a>
                </div>
            </div>
        </div>
    </div>
    <div>
        <div>
            <a style="padding-left:900px; font-size:54px;">
                科室管理平台
            </a>
        </div> 
        
        <div style="padding-top:50px;">
            <div style="width:960px; height:500px;  float:left; margin-left:50px;">
                <a style="width:960px; height:45px; margin-left:650px; margin-top:20px;">
                    科室搜索：<input id="KsName" type="text" /><input id="SelKsBtn" type="button" value="搜索" onclick="SelKsBtn()" />
                </a>
                @using (Html.BeginForm())
                {
                    <table style="width:960px; height:300px; border:1px solid #808080; margin-top:20px;" cellpadding="0" cellspacing="0">
                        <thead style=" border:1px solid #808080;">
                            <tr style="text-align:center; border:1px solid #808080; ">
                                <td style=" border:1px solid #808080;">科室编号</td>
                                <td style=" border:1px solid #808080;">科室名称</td>
                                <td style=" border:1px solid #808080;">科室科室简介</td>
                                <td style=" border:1px solid #808080;">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in Model)
                            {
                                <tr style="text-align:center; border:1px solid #808080; ">
                                    <td style=" border:1px solid #808080;">@item.Office_ID</td>
                                    <td style=" border:1px solid #808080;">@item.Office_Name</td>
                                    <td style=" border:1px solid #808080;">@item.Office_Mess</td>
                                    <td style=" border:1px solid #808080;">
                                        <input id="Button1" type="button" value="删除" onclick="DelOffice(@item.Office_ID)" />
                                    </td>
                                </tr>
                            }
                        </tbody>
                       
                    </table>
                    <br /><br /><br />

                    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageIndex" })
                }
                
            </div>


            <div style="width:960px; height:500px; border:1px solid #b6ff00; float:left; margin-left:100px;">
                <form action="/Office/Off_AddPages" enctype="multipart/form-data" method="post">
                    <table>
                        <tr>
                            <td>
                                科室名称：
                            </td>
                            <td>
                                <input name="OffName" type="text" /><br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                科室简介：
                            </td>
                            <td>
                                <textarea name="OffMess" rows="2" cols="20"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="2">
                                <input id="Submit1" type="submit" value="添加" />
                            </td>
                        </tr>
                    </table>
                    
                </form>
              

            </div>
        </div>
       
           
        
    </div>
    <script>
        function SelKsBtn()
        {
            var name = $("#KsName").val();
            location.href = "/Office/Off_AddPage?name=" + name;
        }
        function DelOffice(id)
        {
            location.href="/Office/DelOffice?id="+id;
        }
    </script>
   
</body>
</html>
